import 'bitmap.dart';

enum ListType { normal, add }

enum SettingType { color, settings, direction }

enum DropPointType { no, customize, last }

// List<ColorCardItem> getTextList() {
//   return [
//     ColorCardItem(
//         text: S.current.mc_full_color, type: ColorCardType.rgb, isSelect: true),
//     ColorCardItem(text: S.current.mc_white_light, type: ColorCardType.cct),
//     ColorCardItem(text: S.current.mc_color_card, type: ColorCardType.card),
//   ];
// }
//
// List<ColorDynamicItem> getColorDynamicList() {
//   return [
//     ColorDynamicItem(
//         text: S.current.mc_fixed, type: ColorDynamicType.fixed, isSelect: true),
//     ColorDynamicItem(text: S.current.mc_jump, type: ColorDynamicType.jump),
//     ColorDynamicItem(
//         text: S.current.mc_running_water, type: ColorDynamicType.runningWater),
//   ];
// }

enum ColorCardType { rgb, cct, card }

class ColorCardItem {
  ColorCardItem(
      {required this.text, required this.type, this.isSelect = false});

  String text;
  ColorCardType type;
  bool isSelect;
}

enum ColorDynamicType { fixed, jump, runningWater }

class ColorDynamicItem {
  ColorDynamicItem(
      {required this.text, required this.type, this.isSelect = false});

  String text;
  ColorDynamicType type;
  bool isSelect;
}

// enum SettingType { color, settings, direction }
//
// enum DropPointType { no, customize, last }

///方向类型
enum CurtainDirectionType {
  d_right,
  d_left,
  d_open,
  d_close,
  d_right_left,
  d_open_close,
}

class DirectionItem {
  DirectionItem(
      {required this.icon, required this.type, this.isSelect = false});

  String icon;
  CurtainDirectionType type;
  bool isSelect;
}

class CanvasData {
  CanvasData({required this.x, required this.y, required this.bitmap});

  int x;
  int y;
  Bitmap bitmap;
}